import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 123
 * Date: 2023-05-20
 * Time: 10:00
 */
public class test {
    public static void main(String[] args) {
        int[] array = new int[]{1,2,3,4} ;
        transform(array);
        System.out.println(Arrays.toString(array));
    }
   public static void  transform(int[] arr){
       for (int i = 0; i < arr.length; i++) {
           arr[i] = 2 * arr[i];
       }

   }



}
